package com.dtx.bishi.bishi1;

import java.math.BigDecimal;

public class Pig {

    private Integer age;
    private BigDecimal weight;
    private String name;
    private String number;

    public Pig() {
    }

    public Pig(Integer age) {
        this.age = age;
    }

    public Pig(BigDecimal weight) {
        this.weight = weight;
    }

    public Pig(String name) {
        this.name = name;
    }




    public Pig(Integer age, BigDecimal weight, String name, String number) {
        this.age = age;
        this.weight = weight;
        this.name = name;
        this.number = number;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public BigDecimal getWeight() {
        return weight;
    }

    public void setWeight(BigDecimal weight) {
        this.weight = weight;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    @Override
    public String toString() {
        return "Pig{" +
                "age=" + age +
                ", weight=" + weight +
                ", name='" + name + '\'' +
                ", number='" + number + '\'' +
                '}';
    }
}
